package com.nowcoder;

import org.junit.jupiter.api.Test;

import java.io.IOException;

public class Html2pdf {
    @Test
    void test1() throws IOException {
        String s = "E:\\Tools\\wkhtmltopdf\\bin\\wkhtmltoimage.exe --quality 75 https://www.baidu.com  3.png";
        Runtime.getRuntime().exec(s);
        System.out.println("ok");
    }
}
